﻿using System;
using System.Web.UI.WebControls;
using BLL;

public partial class ViewbyProduct_Details_AllENA : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindENA();
        }
    }

    protected void BindENA()
    {
        ENA eNA = new ENA();
        GridView1.DataSource = eNA.GetENAs();
        GridView1.DataBind();
    }

    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        this.GridView1.PageIndex = e.NewPageIndex;
        BindENA();
    }
}
